package cn.liit.weixin.message.model.req;

/**
 * 请求消息基类  存放请求消息中的公共属性信息
 * @author boqi.zhang
 * */
public abstract class ReqBaseMessage {
	
	private String ToUserName;//开发者微信号
	private String FromUserName;//发送方账号(一个OpenId)
	private Long CreateTime;//消息创建时间
	private String MsgType;//消息类型(text/image/voice/video/shortvideo/location/link)
	private String MsgId;//消息id,64位整型  
	
	public ReqBaseMessage() {
		super();
	}
	
	public ReqBaseMessage(String toUserName, String fromUserName, Long createTime,
			String msgType, String msgId) {
		super();
		ToUserName = toUserName;
		FromUserName = fromUserName;
		CreateTime = createTime;
		MsgType = msgType;
		MsgId = msgId;
	}
	
	public String getToUserName() {
		return ToUserName;
	}
	
	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}
	public String getFromUserName() {
		return FromUserName;
	}
	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}
	public Long getCreateTime() {
		return CreateTime;
	}
	public void setCreateTime(Long createTime) {
		CreateTime = createTime;
	}
	public String getMsgType() {
		return MsgType;
	}
	public void setMsgType(String msgType) {
		MsgType = msgType;
	}
	public String getMsgId() {
		return MsgId;
	}
	public void setMsgId(String msgId) {
		MsgId = msgId;
	}

	@Override
	public String toString() {
		return "ReqBaseMessage [ToUserName=" + ToUserName + ", FromUserName=" + FromUserName + ", CreateTime="
				+ CreateTime + ", MsgType=" + MsgType + ", MsgId=" + MsgId + "]";
	}
	
}
